from django.db import models
from django.contrib.auth.models import User


class TaskGroup(models.Model):
    group_name = models.CharField(max_length=200)

class TaskDetail(models.Model):
    group = models.ForeignKey(TaskGroup)
    user = models.ForeignKey(User)
    taskname = models.CharField(max_length=200)
    starttimer = models.DateTimeField(auto_now=False, auto_now_add=False)
    timerflag = models.BooleanField()
    stoptimer = models.DateTimeField(auto_now=False, auto_now_add=False)
    totaltime = models.DateTimeField(auto_now=False, auto_now_add=False)
    goal = models.DateTimeField(auto_now=False, auto_now_add=False)
    
